package com.marco.task.system;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.scheduling.annotation.Schedules;
import org.springframework.stereotype.Component;

/**
 * HomePageLocalTask.java
 * Create on 2017/1/23
 * Copyright(c) JD Inc. All Rights Reserved.
 * <pre>
 * 功能说明：SPRING定时任务DEMO
 * </pre>
 */
@Component
public class HomePageLocalTask {
    private static final Logger logger = LoggerFactory.getLogger(HomePageLocalTask.class);

    @Schedules(value = {@Scheduled(fixedDelay = 500000, initialDelay = 5000)})
    private void testSpringSchedule() {
        logger.info("正在测试SPRING 定时任务");
    }
}
